<?php

/**
 * Created by PhpStorm.
 * User: d7
 * Date: 2016/1/30
 * Time: 14:50
 */
class Recommend extends MY_Api_Controller
{
    function __construct()
    {
        parent::__construct();
    }

    function index(){
        $type = $this->input->get('type');
        if(empty($type)){
            $this->config->load('data/recommend');
            $return = $this->config->item('index');
            $this->set_response(0,$return);
        }
        $this->set_response(0,$return[$type]);
    }

    function content(){

    }
}